package com.zx.map.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.zx.map.dao.model.CreditRepayInfo;
import com.zx.map.dao.model.CreditRepayInfoExample;

public interface CreditRepayInfoDao {

	/**
	 * 新增
	 *
	 * @param creditRepayInfo
	 * @return
	 * @throws DataAccessException
	 */
	public String add(CreditRepayInfo creditRepayInfo) throws DataAccessException;

	/**
	 * 更新
	 *
	 * @param creditRepayInfo
	 * @return
	 * @throws DataAccessException
	 */
	public String update(CreditRepayInfo creditRepayInfo) throws DataAccessException;

	/**
	 * 删除
	 *
	 * @param creditRepayInfo
	 * @throws DataAccessException
	 */
	public void delete(CreditRepayInfo creditRepayInfo) throws DataAccessException;

	/**
	 * 根据Model查找List
	 * @param example
	 * @return
	 * @throws DataAccessException
	 */
	public List<CreditRepayInfo> getListByExample(CreditRepayInfoExample example) throws DataAccessException;
	
	public int countListByExample(CreditRepayInfoExample example);
	 /**
     * 分页查找
     */
	public List<CreditRepayInfo> getPageByExample(int pageSize, int pageBegin,
			CreditRepayInfoExample example) throws DataAccessException ;

	/**
	 * 根据单Key查找Model
	 * 
	 * @param example
	 * @return
	 * @throws DataAccessException
	 */
	public CreditRepayInfo selectByPrimaryKey(Integer key)
			throws DataAccessException;
}